package service;

import java.sql.SQLException;
import java.util.List;

import bean.Ajax;
import entity.Auth;
import entity.Role;

public interface RoleService {
	Ajax<Role> getList(int offset, int limit, String condition, String order) throws SQLException ;
	List<Role> getRoleList() throws SQLException;
	List<Auth> getAuthList() throws SQLException;
	int addRole(Role role) throws SQLException;
	int deleteRoleById(String id) throws SQLException;
	Role getRoleById(String id) throws SQLException;
	int editRole(Role role) throws SQLException;
	List<Auth> getRoleAuthList() throws SQLException;
}
